/*
 * @brief :   
 * @author: Ares
 * @date : 2021-05-xx
 * @version : v1.0.0
 * @copyright(c) 2020 : OptoMedic Technologies Co.,Ltd. All rights reserved
 */
#ifndef _DOGE_HASH_H_
#define _DOGE_HASH_H_

#define D_HASH_NULLKEY -32768

typedef enum hash_return {
    D_HASH_SUCCESS  = 0,
    D_HASH_UNSUCCESS = !D_HASH_SUCCESS,
}hash_ret_t;


typedef struct {
    int *elem;  //数据元素存储的基址，动态分配数组
    int count;
}hashtable_t;

hash_ret_t doge_hashtable_init(hashtable_t *h, int size);
hash_ret_t doge_hashtable_insert(hashtable_t *h, int key);

#endif